﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  <title>hCard 10 - geo comprehensive data format test</title>
  
 <!-- This will be replace with one CSS file and one JavaScipt file -->
  <link rel="stylesheet" href="../css/uftestsuite.css" type="text/css" />
  <link rel="stylesheet" href="../../../testrunner/css/testrunner.css" type="text/css" />
  
  <script type="text/javascript" src="../../testrunner/javascript/prototype-1.6.0.2.js"></script> 
  <script type="text/javascript" src="../../testrunner/javascript/beautify.js"></script> 
  <script type="text/javascript" src="../../testrunner/javascript/sumo/microformat.js"></script>
  <script type="application/javascript;version=1.7" src="http://svn.mozilla.org/labs/operator/chrome/content/Microformats/Microformats.js"></script>
  <script type="text/javascript" src="../../testrunner/javascript/shiv/microformats-shiv.js"></script>
  <script type="text/javascript" src="../../testrunner/javascript/shiv/microformats-definition.js"></script>  
  <script type="text/javascript" src="../../testrunner/javascript/testrunner.js"></script>
   
</head>
<body>
    
    <div class="test-fixture">
    
    <p>
    <a href="../"><img border="0" id="testsuite-image" alt="Microformats test suite" src="../images/testsuite.gif" /></a><br />
    </p>
    
    <h1 class="summary">hCard 10 - geo comprehensive data format test</h1>
    <p class="description">This page was design to comprehensively test the geo format. Most of these tests are based on <span class="vcard"><a href="http://www.kaply.com/weblog/"class="fn url">Mike Kaply</a></span> work for the 
	Firefox.  The IsEqualToGeo method <a href="../documentation/geo.htm">canonicalise and compares</a> geo's.</p>
    <p>From: <a href="default.htm"><span class="format">hCard</span> test suite 1.0</a></p>
    <p class="author vcard">
        Author: <a class="url fn" href="http://www.glennjones.net/">Glenn Jones</a> 
    </p>
    <!--
    <p>Output examples: 
    <ul>
    <li class="output"><a class="url" href="hcard1.js"><span class="type">JSON</span></a></li>
    <li class="output"><a class="url" href="hcard1.xml"><span class="type">XML</span></a></li>
    </ul>
    </p>
    -->
    
    <input id="unittestbutton" type="button" onclick="microformatsTestRunner.displayTestOptionForm()" value="Unit Test Runner"/>

    
    <p>Tests:</p>
    <table id="assetTable" cellpadding="0" cellspacing="0">
    <thead>
        <tr>
            <th>Test</th>
            <th>Result</th>
            <th>Comment</th>
        </tr>
    </thead>
    <tbody>
    
         <tr class="assert">
            <td class="test">vcard[0].geo.latitude</td>
            <td class="result">IsEqualToGeo("0")</td>
            <td class="comment">Should find latitude value from single element</td>
        </tr>
        
        <tr class="assert">
            <td class="test">vcard[1].geo.latitude</td>
            <td class="result">IsEqualToGeo("0")</td>
            <td class="comment">Should find latitude value from single element</td>
        </tr>
        
        <tr class="assert">
            <td class="test">vcard[2].geo.latitude</td>
            <td class="result">IsEqualToGeo("0")</td>
            <td class="comment">Should find latitude value from single element</td>
        </tr>

        <tr class="assert">
            <td class="test">vcard[3].geo.latitude</td>
            <td class="result">IsEqualToGeo("23.7")</td>
            <td class="comment">Should find latitude value from single element</td>
        </tr>
        
        <tr class="assert">
            <td class="test">vcard[4].geo.latitude</td>
            <td class="result">IsEqualToGeo("0")</td>
            <td class="comment">Should find latitude value from single element</td>
        </tr>


        <tr class="assert">
            <td class="test">vcard[5].geo</td>
            <td class="result">HasProperty(false)</td>
            <td class="comment">Is an illegal data format for geo</td>
        </tr>

        <tr class="assert">
            <td class="test">vcard[6].geo</td>
            <td class="result">HasProperty(false)</td>
            <td class="comment">Is an illegal data format for geo</td>
        </tr>


        <tr class="assert">
            <td class="test">vcard[7].geo</td>
            <td class="result">HasProperty(false)</td>
            <td class="comment">Is an illegal data format for geo</td>
        </tr>


        <tr class="assert">
            <td class="test">vcard[8].geo</td>
            <td class="result">HasProperty(false)</td>
            <td class="comment">Is an illegal data format for geo</td>
        </tr>


        <tr class="assert">
            <td class="test">vcard[9].geo</td>
            <td class="result">HasProperty(false)</td>
            <td class="comment">Is an illegal data format for geo</td>
        </tr>


        <tr class="assert">
            <td class="test">vcard[10].geo</td>
            <td class="result">HasProperty(false)</td>
            <td class="comment">Is an illegal data format for geo</td>
        </tr>

        <tr class="assert">
            <td class="test">vcard[11].geo</td>
            <td class="result">HasProperty(false)</td>
            <td class="comment">Is an illegal data format for geo</td>
        </tr>

        <tr class="assert">
            <td class="test">vcard[12].geo</td>
            <td class="result">HasProperty(false)</td>
            <td class="comment">Is an illegal data format for geo</td>
        </tr>

        <tr class="assert">
            <td class="test">vcard[13].geo</td>
            <td class="result">HasProperty(false)</td>
            <td class="comment">Is an illegal data format for geo</td>
        </tr>




    </tbody>
    </table> 
    
    
    <p>History:</p>
    <ul>
	    <li class="history vevent">
	        <span class="summary">Created</span>: <abbr class="dtstart" title="2008-05-10">10 May 2008</abbr> 
	        <span class="description">by Glenn Jones</span>
	    </li>
    </ul>
    
    
    
    </div>
  
    <div id="uf">
        <!-- This may not be the best semantic use of HTML element -->
            
    
		
		   
        <h3>Legal</h3>
		<ul>
			<!-- 0 -->
			<li class="vcard"><span class="geo"><span class="latitude">0</span>,<span class="longitude">0</span></span> - <span class="fn">John Doe</span></li>
			<!-- 1 -->
			<li class="vcard"><span class="geo"><span class="latitude">0.0</span>,<span class="longitude">0.0</span></span> - <span class="fn">John Doe</span></li>
			<!-- 2 -->
			<li class="vcard"><span class="geo"><span class="latitude">0.</span>,<span class="longitude">0.</span></span> - <span class="fn">John Doe</span></li>
			<!-- 3 -->
			<li class="vcard"><abbr class="geo" title="+23.70000;+90.30000">Dhaka, Bangladesh</abbr> - <span class="fn">John Doe</span></li>
			<!-- 4 -->
			<li class="vcard"><span class="geo">0;0</span> - <span class="fn">John Doe</span></li>
		</ul>
		

	 	<h3>Illegal</h3>
		<ul>
			<!-- 5 -->
			<li class="vcard"><span class="geo"><span class="latitude">abc</span>,<span class="longitude">def</span></span> - <span class="fn">John Doe</span></li>
			<!-- 6 -->
			<li class="vcard"><span class="geo"><span class="latitude">12.s2</span>,<span class="longitude">1d.23</span></span> - <span class="fn">John Doe</span></li>
			<!-- 7 -->
			<li class="vcard"><span class="geo"><span class="latitude">999.99</span>,<span class="longitude">999</span></span> - <span class="fn">John Doe</span></li>
			<!-- 8 -->
			<li class="vcard"><span class="geo"><span class="latitude">-181</span>,<span class="longitude">-361</span></span> - <span class="fn">John Doe</span></li>
			<!-- 9 -->
			<li class="vcard"><span class="geo">abc;def</span> - <span class="fn">John Doe</span></li>
			<!-- 10 -->
			<li class="vcard"><span class="geo">12.s2;1d.23</span> - <span class="fn">John Doe</span></li>
			<!-- 11 -->
			<li class="vcard"><span class="geo">999.99;999</span> - <span class="fn">John Doe</span></li>
			<!-- 12 -->
			<li class="vcard"><span class="geo">-181;-361</span> - <span class="fn">John Doe</span></li>
			<!-- 13 -->
			<li class="vcard"><span class="geo">-18;;-31</span> - <span class="fn">John Doe</span></li>
		</ul>

   		    
    </div>
    
    
    <p>
        <a rel="license" href="../license.txt">Some rights reserved</a>
    </p>
        
  
</body>

</html>